#ifndef MYCOIN_H
#define MYCOIN_H

#include <QPushButton>
#include <QString>
#include <QTimer>

class Mycoin : public QPushButton
{
    Q_OBJECT
public:
    int m_posx;
    int m_posy;
    int m_flag; //正反标志1表示正， 0表示反
    QTimer* m_timer1;
    QTimer* m_timer2;
    int m_max_index;
    int m_min_index;
    bool m_isWin;

    //是否执行动画标志
    bool m_isAnimation; //如果正在执行动画，则丢弃用户点击事件
    //explicit Mycoin(QPushButton *parent = nullptr);
    Mycoin(QString coinStr);

    void ChangeStatus();

    //鼠标按下消息重写
    void mousePressEvent(QMouseEvent *e);

signals:

public slots:
};

#endif // MYCOIN_H
